Skip to content

feat: focus first quick-amount button for keyboard-only payment#234

Open
NotAbdelrahmanelsayed wants to merge 1 commit intoBrainWise-DEV:developfrom
NotAbdelrahmanelsayed:feat/enter-to-pay-quick-amount
Open

feat: focus first quick-amount button for keyboard-only payment#234
NotAbdelrahmanelsayed wants to merge 1 commit intoBrainWise-DEV:developfrom
NotAbdelrahmanelsayed:feat/enter-to-pay-quick-amount

Conversation

@NotAbdelrahmanelsayed
Copy link
Copy Markdown
Contributor

@NotAbdelrahmanelsayed NotAbdelrahmanelsayed commented Apr 7, 2026

Summary

  • When the payment dialog opens (desktop), the first quick-amount button — always the exact grand total — is auto-focused
  • Cashier presses Enter → amount applied → invoice auto-completed. Zero mouse clicks.
  • Mobile custom-amount input: Enter applies amount and auto-completes if fully paid
  • Numpad Enter: auto-completes after adding an amount if fully paid
  • Typing 0 + Enter on mobile triggers pay-on-account when credit sale is enabled

Demo

after.mp4

🤖 Generated with Claude Code

When the payment dialog opens on desktop, the first quick-amount button
(always the exact grand total) is auto-focused. The cashier can press
Enter immediately to pay the exact amount and complete the invoice —
no mouse click needed.

Also adds Enter-to-complete to the mobile custom-amount input and the
numpad: pressing Enter after a payment auto-completes the invoice if
fully paid. Entering 0 + Enter on mobile triggers pay-on-account when
credit sale is enabled.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity for 21 days.

To keep this PR open, please:

  • Rebase on the latest develop branch
  • Address any pending review comments
  • Reply with an update on the PR status

If no further activity occurs within the next 14 days, this PR will be automatically closed.

@github-actions github-actions Bot added the stale label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant